<?PHP

if (eregi("wysiwyg.php",$PHP_SELF)) {
    die();
}
#$module_name = basename(dirname(__FILE__));
#require_once("mainfile.php");
#get_lang($module_name);

function WysiwygHeaderInclude () {
#echo "header";
echo "<script language='Javascript1.2'><!--\n";                                // load htmlarea
echo "_editor_url = \"./wysiwyg/\";\n";                // URL to htmlarea files
echo "var win_ie_ver = parseFloat(navigator.appVersion.split(\"MSIE\")[1]);\n";
echo "if (navigator.userAgent.indexOf('Mac')        >= 0) { win_ie_ver = 0; }\n";
echo "if (navigator.userAgent.indexOf('Windows CE') >= 0) { win_ie_ver = 0; }\n";
echo "if (navigator.userAgent.indexOf('Opera')      >= 0) { win_ie_ver = 0; }\n";
echo "if (win_ie_ver >= 5.5) {\n";
echo "        document.write('<scr' + 'ipt src=\"' +_editor_url+ 'editor.js\"');\n";
echo "        document.write(' language=\"Javascript1.2\"></scr' + 'ipt>');\n";
echo "}\n";
echo "// --></script>\n";
}

WysiwygHeaderInclude ();

?>
